# opencv
find_package(OpenCV)

# #person-detpose
# include(${CMAKE_CURRENT_LIST_DIR}/../../person-detpose/person-detpose.cmake)

# #tracker
# include(${CMAKE_CURRENT_LIST_DIR}/../../multitarget-tracker/multitarget-tracker.cmake)

# #face-detection
# include(${CMAKE_CURRENT_LIST_DIR}/../../face-detection/face-detection.cmake)

# #face-information
# include(${CMAKE_CURRENT_LIST_DIR}/../../face-information/face-information.cmake)

# #face-identification
# include(${CMAKE_CURRENT_LIST_DIR}/../../face-identification/face-identification.cmake)

# openblas
#include(${CMAKE_CURRENT_LIST_DIR}/../../cmake/openblas.cmake)

include_directories(${CMAKE_CURRENT_LIST_DIR}/../../common)

#set(srcs  ${CMAKE_CURRENT_LIST_DIR}/src/Utils.cpp
 #   ${CMAKE_CURRENT_LIST_DIR}/src/dispatcher.cpp)

file(GLOB srcs ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)

add_library(single-thread-dispatcher STATIC ${srcs})
target_link_libraries(single-thread-dispatcher ${OpenCV_LIBS} cuda libpose multitarget-tracker face-detection face-information face-identification configuration statistics render utils person-detection videostream)
target_link_libraries(single-thread-dispatcher debug caffed optimized caffe)
target_link_libraries(single-thread-dispatcher cudart)

add_executable(dispatcher-test ${CMAKE_CURRENT_LIST_DIR}/main.cpp)
target_link_libraries(dispatcher-test single-thread-dispatcher ${OpenCV_LIBS})